package com.zhkj.txg.module.product.ui

import android.app.Activity
import android.content.Intent
import android.view.View
import com.zhkj.lib.base.BaseActivity
import com.zhkj.txg.R
import com.zhkj.txg.utils.ImageUtils
import kotlinx.android.synthetic.main.activity_product_licence.*

class ProductLicenceActivity : BaseActivity() {

    companion object {
        private val LICENCE = "licence"
        fun open(activity: Activity, licence: String) {
            val intent = Intent(activity, ProductLicenceActivity::class.java)
                .putExtra(LICENCE, licence)
            activity.startActivity(intent)
        }
    }

    override val layoutResId: Int = R.layout.activity_product_licence
    override fun statusTitleBar(): View? = titleQualification

    override fun initData() {
        ImageUtils.loadImageOrigin(this, ivLicence, intent.getStringExtra(LICENCE) ?: "")
    }
}